<!--
@author     Yi Bo <etng2004@gmail.com>
@version    $Id: contacthistory_edit.php 54 2007-09-07 05:59:18Z etng2004 $
@copyrithg  2006-2007 ETE.CN
@license    PHP Version 3.0 {@link http://www.php.net/license/3_0.txt}
-->
<?php
$this->declareVars();
echo $this->render('header.php');
require_once(dirname(__FILE__) . '/_meta_contacthistory.php');
/*$this->dump($this->contact_history);*/
$contact_history = $this->contact_history;
?>
<form action="<?php echo $this->base_url;?>/edit/" method="post" enctype="multipart/form-data" name="frmEditContactHistory" id="frmEditContactHistory">
<table cellpadding="0" cellspacing="0" border="0" class="tblborder">
<tr class="tblhead">
    <td colspan="2">修改<a href="<?php echo $this->base_url;?>/view/id/<?php echo $contact_history['id']; ?>"><?php echo $contact_history['title']; ?></a></td>
</tr>
<input type="hidden" name="fields[contact_history][id]" value="<?php echo $contact_history['id'];?>" id="field_id" />
<input type="hidden" name="fields[contact_history][staff_id]" value="<?php echo $contact_history['staff_id'];?>" id="field_staff_id" />
<input type="hidden" name="fields[contact_history][client_id]" value="<?php echo $contact_history['client_id'];?>" id="field_client_id" />
<input type="hidden" name="fields[contact_history][contact_id]" value="<?php echo $contact_history['contact_id'];?>" id="field_contact_id" />
<tr class="tblbody" >
        <td width="15%"><?php echo $meta['contact_history']['fields']['contact_by'];?></td>
        <td width="85%">
        <?php
      echo $this->formSelect('fields[contact_history][contact_by]', @$contact_history['contact_by'], array('id'=>'field_contact_by'), $LANG['CONTACT_BY']);
      ?>
        </td>
    </tr>
    <tr class="tblbody" >
        <td width="15%"><?php echo $meta['contact_history']['fields']['detail'];?></td>
        <td width="85%">
        <?php
    echo $this->fckeditor('fields[contact_history][detail]', $contact_history['detail'], 'Basic');
    ?>
        </td>
    </tr>
    <tr class="tblbody" >
        <td width="15%"><?php echo $meta['contact_history']['fields']['conclusion'];?></td>
        <td width="85%">
        <?php
    echo $this->fckeditor('fields[contact_history][conclusion]', $contact_history['conclusion'], 'Basic');
    ?>
        </td>
    </tr>
<tr class="tblfoot">
    <td colspan="2" align="center"><input type="submit" value="提交" /></td>
</tr>
</table>
</form>
<?php
echo $this->render('footer.php');
?>